package com.pe.rimac.util;

import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.widget.ArrayAdapter;
import android.widget.Spinner;


public abstract class Lista {

	public static void fillListMockItem(Context context, Spinner s, String prefijo)
	{
		int cantidadItems = 5;
				
		List<CharSequence> catalogo = new ArrayList<CharSequence>();
		
		ArrayAdapter<CharSequence> featuresAdapter = new ArrayAdapter<CharSequence>(context,
				  android.R.layout.simple_spinner_item, catalogo);
		
		featuresAdapter.setDropDownViewResource(
				  android.R.layout.simple_spinner_dropdown_item);
		
		for (int i = 0; i < cantidadItems; i++) {
			featuresAdapter.add(prefijo + " " + (i+1));
		}
		
		//Spinner s = (Spinner) activity.findViewById(idSpinner);
		s.setAdapter(featuresAdapter);
		
	}
	
	
}
